home *** CD-ROM | disk | FTP | other *** search
- ISHC(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- IISSHHCC, IIIISSHHCC, JJIISSHHCC, KKIISSHHCC - Performs circular shift on an integer
-
- SSYYNNOOPPSSIISS
- IISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- IIIISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- JJIISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- KKIISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran extensions
-
- DDEESSCCRRIIPPTTIIOONN
- The IISSHHCC, IIIISSHHCC, JJIISSHHCC, KKIISSHHCC intrinsic functions perform a circular
- shift on an integer. In this shift, the intrinsic rotates the
- integer, left or right, by a specified number of bits. Bits shifted
- out of one end are shifted in or the other end. No bits are lost.
- These functions accept the following arguments:
-
- _i Must be of type integer. For IIIISSHHCC, must be of type integer
- (KIND=2). For JJIISSHHCC, must be of type integer (KIND=4). For
- KKIISSHHCC, must be of type integer (KIND=8). This is the value
- to be shifted.
-
- _s_h_i_f_t Must be of the same type and kind type parameter as _a. This
- is the direction and distance of rotation.
-
- Positive shifts are left, toward the most significant bit.
- Negative shifts are right, toward the least significant bit.
- If _s_h_i_f_t is zero, no shift is performed.
-
- These are elemental intrinsic functions. The names of these
- intrinsics cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _i. The result is
- equal to _i rotated by _s_h_i_f_t bits.
-
- For an integer (KIND=4) argument, 32 bits are shifted. If you want to
- shift a 1-byte or 2-byte argument, declare it as KIND=1 or KIND=2,
- respectively.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-